-- GENERATED SPELL FOR [Plagued Magnataur] --


function spell0_25615(pUnit, Event) --@Plague Cloud,Self--
pUnit:FullCastSpellOnTarget(50366,pUnit)
pUnit:RegisterEvent('Sorts_25615', 0, 1)
end

function Sorts_25615(pUnit, Event)
local choix_sorts_25615 = math.random(0, 0)
if choix_sorts_25615 == 0 then
pUnit:RegisterEvent('spell0_25615', 1, 1)
end
end

function mob25615_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25615', math.random(1500, 3000), 1)
end

function mob25615_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25615_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25615_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25615, 1, 'mob25615_Action')
RegisterUnitEvent(25615, 2, 'mob25615_Leave')
RegisterUnitEvent(25615, 3, 'mob25615_Kill')
RegisterUnitEvent(25615, 4, 'mob25615_Die')
